package com.cwd.arm.application.service.read;

import com.cwd.arm.infrastructure.dao.MsgRecipientDao;
import com.cwd.arm.infrastructure.po.MsgRecipientPo;
import com.cwd.arm.application.dto.MsgRecipientDto;
import com.cwd.arm.application.service.read.facade.MsgRecipientReadService;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Primary;
import org.springframework.stereotype.Repository;

/**
* Description:消息接受者
* Created on 2022年01月15日
* @author  yan
*/
@Repository
@Primary
public class MsgRecipientReadServiceImpl implements MsgRecipientReadService {

    @Autowired
    private MsgRecipientDao msgRecipientDao;

    @Override
    public MsgRecipientDto selectById(Long id) {
        // TODO: 21-11-15
        return convertToDto(null);
    }

    private MsgRecipientDto convertToDto(MsgRecipientPo po){
        MsgRecipientDto dto = new MsgRecipientDto();
        BeanUtils.copyProperties(po, dto);
        return dto;
    }

}
